package com.itheima.test03;

import java.math.BigDecimal;

public class Test03 {

    public static void main(String[] args) {
        BigDecimal bd1 = new BigDecimal("20.0");
        BigDecimal bd2 = new BigDecimal("3.0");
        BigDecimal divide = bd1.divide(bd2, 4, BigDecimal.ROUND_UP);
        BigDecimal divide1 = bd1.divide(bd2, 4, BigDecimal.ROUND_FLOOR);
        BigDecimal divide2 = bd1.divide(bd2, 4, BigDecimal.ROUND_HALF_UP);
        System.out.println(divide);
        System.out.println(divide1);
        System.out.println(divide2);

    }
}
